﻿<controls:ChildWindow x:Class="VAdvantage.Dialogs.RecordAccessDialog"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="Auto" Height="Auto" 
           Title="RecordAccessDialog" xmlns:my="clr-namespace:VAdvantage.Controls">
    <Grid x:Name="LayoutRoot" Margin="2" Height="Auto" Width="Auto">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            
        </Grid.ColumnDefinitions>
        <Button Grid.Column="6" Grid.Row="3"  Height="40" Width="40" HorizontalAlignment="Right" Margin="2,2,2,2" Name="btnOK" Click="btnOk_Click">
            <Image Source="/VAdvantage;component/Images/right_up.png" Stretch="Fill" />
        </Button>
        <Button Grid.Column="5" Grid.Row="3"   Height="40" Width="40" HorizontalAlignment="Right" Margin="2,2,2,2" Name="btnCancel" Click="btnCancel_Click">
            <Image Source="/VAdvantage;component/Images/cancel_up.png" Stretch="Fill" />
        </Button>
        <Button Grid.Row="0" HorizontalAlignment="Left" Margin="2,2,2,2" Name="btnUp" Width="Auto" Height="Auto" Click="btnUp_Click">
            <Image Source="/VAdvantage;component/Images/Next32.png" Height="25" Width="25" Stretch="UniformToFill" />
        </Button>
        <Button Grid.Row="2"  HorizontalAlignment="Left" Margin="2,2,2,2" Name="btnDown" Width="Auto" Height="Auto" Click="btnDown_Click">
            <Image Source="/VAdvantage;component/Images/Previous32.png" Height="25" Width="25"  Stretch="UniformToFill" />
        </Button>
        <Button Grid.Column="6" Grid.Row="0"   Height="Auto" Width="Auto" HorizontalAlignment="Right" Margin="2,2,2,2" Name="btnNew" Click="btnNew_Click">
            <Image Source="/VAdvantage;component/Images/New22.png" Stretch="Fill" />
        </Button>
        <Button Grid.Column="6" Grid.Row="1"  Height="Auto" Width="Auto" HorizontalAlignment="Right" Margin="2,2,2,2" Name="btnDelete" Click="btnDelete_Click">
            <Image Source="/VAdvantage;component/Images/delete.png" Stretch="Fill" />
        </Button>
        <my:VCheckBox Content="IsActive" Grid.Column="2"  Grid.Row="1"  HorizontalAlignment="Left" Margin="2,2,2,2" x:Name="chkActive" VerticalAlignment="Center" />
        <my:VCheckBox Content="IsExclude" Grid.Column="3"  Grid.Row="1"  HorizontalAlignment="Left" Margin="2,2,2,2" x:Name="chkExclude" VerticalAlignment="Center" />
        <my:VCheckBox Content="IsReadOnly" Grid.Column="4"  Grid.Row="1"  HorizontalAlignment="Left" Margin="2,2,2,2" x:Name="chkReadOnly" VerticalAlignment="Center" />
        <my:VCheckBox Content="IsDependent" Grid.Column="5"  Grid.Row="1"  HorizontalAlignment="Left" Margin="2,2,2,2" x:Name="chkDependent" VerticalAlignment="Center" />
        <my:VComboBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right" Margin="2,2,2,2" x:Name="cmbRole" VerticalAlignment="Center" Width="150" />
        <my:VLabel Grid.Column="6" Grid.Row="2" Height="Auto" HorizontalAlignment="Right" Content="+1/1" Margin="2,2,2,2" x:Name="lblCount" VerticalAlignment="Center" Width="Auto" />
        <my:VLabel Grid.Column="0" Grid.Row="1" Height="Auto" HorizontalAlignment="Right" Content="Role" Margin="2,2,2,2" x:Name="lblRole" VerticalAlignment="Center" Width="Auto" />
        
    </Grid>
</controls:ChildWindow>